<?php
/**
 * Created by PhpStorm.
 * User: Dell
 * Date: 2019-3-7
 * Time: 10:12
 */

namespace app\index\controller;


use app\common\model\ClassifyModel;
use think\Controller;

class Classify extends Controller
{
    //获取子分类
    public function getSonClassify(){
        if (request()->isAjax()){
            $param = input("param.");

            $classify = new ClassifyModel();

            $where['clas_parentId'] = $param['good_type'];

            $sons = $classify->getClassifySon($where);

            return msg(1,'',$sons);
        }
    }
}